/**
 * 全局状态管理器
 * 负责管理游戏的状态，包括帧数、分数、子弹、敌人和动画等
 */
export default class Static {
	constructor() {
		// 首页图片
		this.image = {
			homeBg: {
				value: null, //首页背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/homebg.png',
				box: { x: 0, y: 0, w: 0, h: 0 }
			},
			rukouBg: {
				value: null, //首页背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/home/rukou.png',
				box: { x: 20, y: 200, w: 80, h: 68 }
			},
			btn1Bg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/home/kaishi.png',
				box: { x: 100, y: 80, w: 200, h: 70 }
			},
			cebianlanBg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/home/cebianlan2.png',
				box: { x: 20, y: 10, w: 200, h: 70 }
			},
			delBg: {
				value: null, //
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/home/del.png',
				box: { x: 20, y: 10, w: 40, h: 40 }
			}
		}

		// 找不同图片
		this.game1image = {
			homeBg: {
				value: null, //首页背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gemgbg.png',
				box: { x: 0, y: 0, w: 0, h: 0 }
			},
			btn1Bg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/outbtn.png',
				box: { x: -65, y: 100, w: 124.8, h: 42 }
			},
			btn2Bg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/jixubtn.png',
				box: { x: 65, y: 100, w: 124.8, h: 42 }
			},

			btn3Bg: {
				value: null, //
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/chonglai.png',
				box: { x: -65, y: 100, w: 124.8, h: 42 }
			},
			btn4Bg: {
				value: null, //
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/fanhui.png',
				box: { x: 65, y: 100, w: 124.8, h: 70 }
			},
			failBg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/fiallbg.png',
				box: { x: 0, y: 0, w: 300, h: 400 }
			},
			gameokBg: {
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/game1/gameok.png',
				box: { x: 0, y: 0, w: 300, h: 400 }
			},

		}
		// gif小熊
		this.xiaoxGif = [{
				value: null, //首页背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gif2/Image1.jpg',
			},
			{
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gif2/Image2.jpg',
			},
			{
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gif2/Image3.jpg',
			},
			{
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gif2/Image4.jpg',
			},
			{
				value: null, //开始游戏背景图片
				url: 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/gif2/Image5.jpg',
			},

		]
		
		this.bgMusicSrc='https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/img/bgm.mp3';// 背景音乐  
		this.successMusicSrc = 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/mp3/ok.mp3';//点击成功声音
		this.failCikMusicSrc = 'https://xhy-1256039008.cos.ap-shanghai.myqcloud.com/xyx/mp3/err.mp3';//点击失败声音
	}



}